package com.lida.zwservice.controller;


import com.lida.commonuntils.R;
import com.lida.zwservice.entity.PersonalDescription;
import com.lida.zwservice.service.PersonalDescriptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 备注 前端控制器
 * </p>
 *
 * @author LiDa
 * @since 2022-01-25
 */
@RestController
@RequestMapping("/zwservice/description")
@CrossOrigin
public class PersonalDescriptionController {

    @Autowired
    private PersonalDescriptionService personalDescriptionService;

    @GetMapping("getDescription/{id}")
    public R gerDescription(@PathVariable String id){
        PersonalDescription description=personalDescriptionService.getById(id);
        String str=description.getDescription();
        return R.success().data("description",str);
    }
}

